import request from '@/utils/request'

// 查询车辆申请列表
export function listCarApply(query) {
  return request({
    url: '/oa/carApply/list',
    method: 'get',
    params: query
  })
}

// 查询车辆申请详细
export function getCarApply(id) {
  return request({
    url: '/oa/carApply/' + id,
    method: 'get'
  })
}

// 新增车辆申请
export function addCarApply(data) {
  return request({
    url: '/oa/carApply',
    method: 'post',
    data: data
  })
}

// 修改车辆申请
export function updateCarApply(data) {
  return request({
    url: '/oa/carApply',
    method: 'put',
    data: data
  })
}

// 删除车辆申请
export function delCarApply(id) {
  return request({
    url: '/oa/carApply/' + id,
    method: 'delete'
  })
}
